package com.ruoyi.rental.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租约管理对象 rental_agreements_by_name
 * 
 * @author ruoyi
 * @date 2024-10-15
 */
public class RentalAgreementsByName extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 租约id */
    private Long rentalId;

    /**  */
    private Long userId;

    /** $column.columnComment */
    private Long landlordId;

    /** $column.columnComment */
    private Long roomId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 房东名 */
    @Excel(name = "房东名")
    private String landlordName;

    /** 房间名 */
    @Excel(name = "房间名")
    private String roomNumber;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 押金 */
    @Excel(name = "押金")
    private BigDecimal deposit;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 租期 */
    @Excel(name = "租期")
    private Long leaseTerm;

    /** 过期时间 */
    private Date expirationDate;

    /**  */
    private Long isDeleted;

    public void setRentalId(Long rentalId) 
    {
        this.rentalId = rentalId;
    }

    public Long getRentalId() 
    {
        return rentalId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setLandlordId(Long landlordId) 
    {
        this.landlordId = landlordId;
    }

    public Long getLandlordId() 
    {
        return landlordId;
    }
    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setLandlordName(String landlordName) 
    {
        this.landlordName = landlordName;
    }

    public String getLandlordName() 
    {
        return landlordName;
    }
    public void setRoomNumber(String roomNumber) 
    {
        this.roomNumber = roomNumber;
    }

    public String getRoomNumber() 
    {
        return roomNumber;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setDeposit(BigDecimal deposit) 
    {
        this.deposit = deposit;
    }

    public BigDecimal getDeposit() 
    {
        return deposit;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setLeaseTerm(Long leaseTerm) 
    {
        this.leaseTerm = leaseTerm;
    }

    public Long getLeaseTerm() 
    {
        return leaseTerm;
    }
    public void setExpirationDate(Date expirationDate) 
    {
        this.expirationDate = expirationDate;
    }

    public Date getExpirationDate() 
    {
        return expirationDate;
    }
    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rentalId", getRentalId())
            .append("userId", getUserId())
            .append("landlordId", getLandlordId())
            .append("roomId", getRoomId())
            .append("userName", getUserName())
            .append("landlordName", getLandlordName())
            .append("roomNumber", getRoomNumber())
            .append("price", getPrice())
            .append("deposit", getDeposit())
            .append("createdAt", getCreatedAt())
            .append("leaseTerm", getLeaseTerm())
            .append("expirationDate", getExpirationDate())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
